import { Module } from '@nestjs/common';
import { PassportModule } from '@nestjs/passport';
import { JwtModule } from '@nestjs/jwt';
import {jwtConstants }from'../auth/jwtConstants '
import { JwtStrategy } from 'src/auth/jwt.strategy';
import { AuthService } from 'src/auth//auth.services'

@Module({
  imports: [
    PassportModule, 
    JwtModule.register({
    secret: jwtConstants.secret,
    signOptions: { expiresIn: '1h' },
  }),
],
  providers: [JwtStrategy,AuthService],
  exports:[AuthService]
})
export class AuthMoudle { }
